<?php declare(strict_types=1);


namespace App\Model\Entity;

use Swoft\Db\Annotation\Mapping\Column;
use Swoft\Db\Annotation\Mapping\Entity;
use Swoft\Db\Annotation\Mapping\Id;
use Swoft\Db\Eloquent\Model;


/**
 * 客服对话日志
 * Class MgChatServerLog
 *
 * @since 2.0
 *
 * @Entity(table="mg_chat_server_log")
 */
class MgChatServerLog extends Model
{
    /**
     * 问询者对话日志编号
     *
     * @Column(name="client_chat_id", prop="clientChatId")
     *
     * @var int
     */
    private $clientChatId;

    /**
     * 发送时间
     *
     * @Column(name="create_time", prop="createTime")
     *
     * @var int
     */
    private $createTime;

    /**
     * 主键编号
     * @Id()
     * @Column()
     *
     * @var int
     */
    private $id;

    /**
     * 客户编号
     *
     * @Column(name="send_to_whom", prop="sendToWhom")
     *
     * @var int
     */
    private $sendToWhom;

    /**
     * 回复内容
     *
     * @Column(name="server_content", prop="serverContent")
     *
     * @var string
     */
    private $serverContent;


    /**
     * @param int $clientChatId
     *
     * @return void
     */
    public function setClientChatId(int $clientChatId): void
    {
        $this->clientChatId = $clientChatId;
    }

    /**
     * @param int $createTime
     *
     * @return void
     */
    public function setCreateTime(int $createTime): void
    {
        $this->createTime = $createTime;
    }

    /**
     * @param int $id
     *
     * @return void
     */
    public function setId(int $id): void
    {
        $this->id = $id;
    }

    /**
     * @param int $sendToWhom
     *
     * @return void
     */
    public function setSendToWhom(int $sendToWhom): void
    {
        $this->sendToWhom = $sendToWhom;
    }

    /**
     * @param string $serverContent
     *
     * @return void
     */
    public function setServerContent(string $serverContent): void
    {
        $this->serverContent = $serverContent;
    }

    /**
     * @return int
     */
    public function getClientChatId(): ?int
    {
        return $this->clientChatId;
    }

    /**
     * @return int
     */
    public function getCreateTime(): ?int
    {
        return $this->createTime;
    }

    /**
     * @return int
     */
    public function getId(): ?int
    {
        return $this->id;
    }

    /**
     * @return int
     */
    public function getSendToWhom(): ?int
    {
        return $this->sendToWhom;
    }

    /**
     * @return string
     */
    public function getServerContent(): ?string
    {
        return $this->serverContent;
    }

}
